package com.wzy.alllearning.domain.common;

import java.io.Serializable;

import lombok.Data;

@Data
public class ResponseResult<T> implements Serializable
{

	private static final long serialVersionUID = -9202854771996549869L;

	private Boolean success;

	private String code;

	private String message;

	private T result;

	// 成功返回
	public static <T> ResponseResult<T> success(T result)
	{
		ResponseResult<T> responseResult = new ResponseResult<>();
		responseResult.setSuccess(Boolean.TRUE);
		responseResult.setResult(result);
		return responseResult;
	}


}
